export function toast(title, icon, duration) {
  uni.showToast({
    title: String(title),
    icon: icon || 'none',
    duration: duration || 2000
  })
}


export function wait(duration=500) {
  return new Promise(resolve => setTimeout(resolve, duration))
}